package com.eh.state.state;

import com.eh.state.base.AbstractState;
import com.eh.state.model.GumballMachine;

/**
 * Created by David on 2016/5/1.
 */
public class SoldOutState extends AbstractState {
    public SoldOutState(GumballMachine gumballMachine) {
        super(gumballMachine);
    }

    @Override
    public void insertQuarter() {
        System.out.println("No gumballs, please get back the money.");
        ejectQuarter();
    }

    @Override
    public void ejectQuarter() {
        // back the money
    }
}
